package
{
	import com.greensock.loading.ImageLoader;
	import com.greensock.loading.LoaderMax;
	import com.greensock.loading.MP3Loader;
	import com.greensock.loading.VideoLoader;
	import com.greensock.loading.XMLLoader;
	import com.managers.StateManager;
	import com.states.Preloader;
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	public class LogisticsTool extends Sprite
	{
		private var _preloader:Preloader;
		
		public function LogisticsTool()
		{
			LoaderMax.activate([ImageLoader, MP3Loader, VideoLoader, XMLLoader]);
			
			addChild(StateManager.instance);
			
			_preloader = new Preloader();
			StateManager.instance.changeState(_preloader);
			
			//_preloader.addEventListener(Event.COMPLETE, onComplete);
		}
	}
}